-- GENERATED SPELL FOR [Severed Defender] --


function spell0_20934(pUnit, Event) --@Ghost Strike,n/a--
pUnit:FullCastSpellOnTarget(36093,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20934', 582, 1)
end

function spell1_20934(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_20934', 5327, 1)
end

function Sorts_20934(pUnit, Event)
local choix_sorts_20934 = math.random(0, 1)
if choix_sorts_20934 == 0 then
pUnit:RegisterEvent('spell0_20934', 1, 1)
end
if choix_sorts_20934 == 1 then
pUnit:RegisterEvent('spell1_20934', 1, 1)
end
end

function mob20934_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20934', math.random(1500, 3000), 1)
end

function mob20934_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20934_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20934_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20934, 1, 'mob20934_Action')
RegisterUnitEvent(20934, 2, 'mob20934_Leave')
RegisterUnitEvent(20934, 3, 'mob20934_Kill')
RegisterUnitEvent(20934, 4, 'mob20934_Die')
